import request from '../util/request'

// 1. get
export const getrequest = async (apiUrl,obj) => {
    const res =  await request.get(apiUrl,{params:{...obj}})
    return res
}

// 2.post
export const postrequest = (apiUrl,obj) => {
  return request.post(apiUrl,{...obj})
}
